﻿using M.AuditField;
using System.ComponentModel.DataAnnotations;

namespace M.WWHours.Domain.Model
{
    /// <summary>
    /// 工人工时
    /// </summary>
    public class WWorkingHours : AuditFields
    {
        /// <summary>
        /// 工人工时ID
        /// </summary>
        [Key]
        public int WWHoursId { get; set; }

        /// <summary>
        /// 工人编号
        /// </summary>
        public string? WorkerNumber { get; set; }

        /// <summary>
        /// 工人姓名
        /// </summary>
        public string? WorkersName { get; set; }

        /// <summary>
        /// 所属部门
        /// </summary>
        public string? Department { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public string? PhoneNumber { get; set; }

        /// <summary>
        /// 工作时长
        /// </summary>
        public int WorkingHours { get; set; }

        /// <summary>
        /// 休息时长
        /// </summary>
        public int RestDuration { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string? Status { get; set; }
    }
}
